// 元数据model
package models

//视频标签
type Tag struct {
	TagID       int    `gorm:"primary_key;comment:标签ID"`
	Name        string `gorm:"type:varchar(255);not null;comment:标签名称"`
	Description string `gorm:"type:text;comment:标签描述"`
}

//VideoTag 表示视频和标签的关联

type VideoTag struct {
	ID
	VideoID int `gorm:"primary_key;index;not null;comment:视频ID"`
	TagID   int `gorm:"primary_key;index;not null;comment:标签ID"`
}
